<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   
    
    <title>My JSP 'Login.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  <s:form action="registListAction" method="post" theme="simple">
  		<s:iterator value="new int[4]" status="st">
	  		<ul><li>
	  		<s:textfield name="%{'regesters['+#st.index+'].userName'}" label="姓名" value="丁元伟"></s:textfield></li>
	  		<li><s:password name="%{'regesters['+#st.index+'].userPassword'}" label="密码" value="123456789"></s:password></li>
	  		<li><s:textfield name="%{'regesters['+#st.index+'].userAge'}" label="年龄" value="20"></s:textfield></li>
	  	  	<li><s:textfield name="%{'regesters['+#st.index+'].userBirthday'}" label="日期" value="2010-10-11"></s:textfield></li>
	  	  	<li><s:textfield name="%{'regesters['+#st.index+'].userAddress'}" label="地址" value="10号"></s:textfield></li>
	  	  	</ul>
  	  	</s:iterator>
  	<s:submit value="提交"></s:submit>
  </s:form>
  <body>
    
  </body>
</html>
